#include "sound_power.h"

SOUND_POWER::SOUND_POWER(CASH *cash, QString path, QObject *parent):QObject(parent)
{

    music = cash->cash_ogg->value(path);

}

void SOUND_POWER::Play_Now()
{

    if( music->state()==2 ) music->stop();

    music->play();

}

void SOUND_POWER::Stop()
{

    music->stop();

}

void SOUND_POWER::Play_Now_Slot()
{

    music->play();

}

SOUND_POWER::~SOUND_POWER()
{
}
